function TreeContextMenu(id) {
    this.id = id;
    this.bindings =  {
        'create': function(t) {
            var branches = $("<li class='closed'><span class='folder' id='new 2'>New Sublist</span><ul><li><span class='file'>Item1</span></li><li><span class='file'>Item2</span></li></ul></li>")
                    .prependTo($(t).parent().find(">ul"));
            $("#browser").treeview({
                add: branches
            });
        },

        'delete': function(t) {
            alert('Trigger was ' + t.id + '\nAction was Delete');
        }
    }
}